// import request from '@/utils/request'
import * as crud from '@/api/crud'

export function list(query) {
  return crud.list({ method: 'post', url: '/peer/index', query: query })
}

export function create(data) {
  return crud.create({ method: 'post', url: '/peer/add', data: data })
}

export function get(data) {
  return crud.get({ method: 'post', url: '/peer/getInfo', data: data })
}

export function update(data) {
  return crud.update({ method: 'post', url: '/peer/update', data: data })
}
